.card-header {
    text-align: center;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #0e1b28;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    color: white;
    text-align: center;
    margin: 30px 0;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #4a90e2;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.header p {
    color: #ccc;
}

.nav {
    background: #1a2c40;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #4a90e2;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.chart-card {
    background: #1a2c40;
    border-radius: 10px;
    padding: 20px;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.chart-card:hover {
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.3em;
    color: #4a90e2;
}

.more-btn {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
}

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
}

.data-table th {
    background: #112235;
    color: #4a90e2;
    font-weight: 600;
}

.data-table tr:nth-child(even) {
    background: #112235;
}

.item-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-icon {
    width: 30px;
    height: 30px;
    background: #4a90e2;
    border-radius: 5px;
}

.price {
    color: #4a90e2;
    font-weight: 600;
}

.change {
    text-align: right;
}

.up {
    color: #2ecc71;
}

.down {
    color: #e74c3c;
}

.footer {
    margin-top: 50px;
    padding: 20px;
    text-align: center;
    color: #ccc;
    font-size: 0.9em;
    border-top: 1px solid #333;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .nav ul {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}